<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
欢迎您!${user.username}
<table>
      <tr><td>用户ID</td><td>用户姓名</td><td>用户密码</td></tr>
          <c:if test="${list!=null}">
              <c:forEach var="i" items="${list}">
              <tr>
                 <td>${i.id}</td>
                 <td>${i.username}</td>
                 <td>${i.password}</td>
                 <td><a href="${pageContext.request.contextPath }/user/userDel.do?id=${i.id}">刪除</a></td>
              </tr>
              </c:forEach>
          </c:if>  
       

</table>

</body>
</html>